package cxf.study;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by woais_000 on 2015/11/22.
 */
@WebService
@Path(value = "/hello")
public interface HelloWorld {

    String sayHi(@WebParam(name="name")String name);

    @GET
    @Produces({MediaType.APPLICATION_JSON })
    @Path("/get/{name}")
    String sayRest(@PathParam("name") String name);
}
